package br.com.carser.business.bean;

import java.util.List;

import javax.ejb.Stateless;
import javax.inject.Inject;

import br.com.carser.business.ProfileBusiness;
import br.com.carser.business.infra.BaseBusinessBean;
import br.com.carser.dao.ProfileDAO;
import br.com.carser.dao.infra.BaseDAO;
import br.com.carser.model.Profile;

/**
 * <B>Project: carser-web</B><BR>
 * 
 * BusinessObject to treat the Profile's Business rules.
 * 
 * <DL>
 * <DT><B>Created:</B>
 * <DD>Oct 3, 2011</DD></DT>
 * </DL>
 * <DL>
 * <DT><B>Last Modification:</B>
 * <DD>Oct 3, 2011</DD></DT>
 * </DL>
 * 
 * @author Caio Carleto - CarSer - Oct 3, 2011
 * @version 1.0
 */
@Stateless
public class ProfileBusinessBean extends BaseBusinessBean<Profile> implements ProfileBusiness {
	
	private static final long serialVersionUID = 5150467648737990674L;
	
	@Inject
	private ProfileDAO dao;
	
	@Override
	public List<Profile> getByName(String name) {
		return dao.getByName(name);
	}

	@Override
	public BaseDAO<Profile> getDAO() {
		return dao;
	}

	@Override
	public Profile getUniqueByName(String name) {
		return dao.getUniqueByName(name);
	}
}
